<{include file="header.html"}>
<script type="text/javascript">
function submitFilter()
{document.frm_filter.submit();
	return true;
}
</script>
	<div class="one_third">

			<div class="box_tool">
				<div class="box_head"><{$smarty.const._LB_TOOLBOX|utf8_escape_html}></div>
				<div class="box_content">
					<a href="<{$smarty.const.APPLICATION_URL}>/testimonial/form/">
						<{$smarty.const._LB_ADD_TESTIMONIAL|utf8_escape_html}>
					</a>
				</div>
			</div>
			<div class="spacer"></div>
			<div class="box_tool">
				<div class="box_head"><{$smarty.const._LB_FILTER|utf8_escape_html}></div>
				<div class="box_content">
					<form id='frm_filter' name='frm_filter' method="get" action="">
					<div class="content" id="filter_panel" style="padding-bottom:0px;">
						<table class="">
							<tr>
								<td><{$smarty.const._LB_STATUS|utf8_escape_html}>&nbsp;:&nbsp;</td>
								<td>
									<select id="STATUS" name="STATUS">
                                        <option value="-1" <{if $filter.STATUS == -1}>selected="selected"<{/if}>><{$smarty.const._LB_ALL|utf8_escape_html}></option>
                                        <option value="0" <{if $filter.STATUS == 0}>selected="selected"<{/if}>><{$smarty.const._LB_WAITING_FOR_APPROVE|utf8_escape_html}></option>
                                        <option value="1" <{if $filter.STATUS == 1}>selected="selected"<{/if}>><{$smarty.const._LB_APPROVED|utf8_escape_html}></option>
                                        <option value="2" <{if $filter.STATUS == 2}>selected="selected"<{/if}>><{$smarty.const._LB_REJECTED|utf8_escape_html}></option>
                                    </select>
								</td>
							</tr>
						</table>
					</div>
					<div class="submit" align="right" style="padding-top:10px;">
						<a class="tribullet" href="#" onclick="submitFilter()"><{$smarty.const._LB_SEARCH|utf8_escape_html}></a>
					</div>
					</form>
				</div>
			</div>
	</div>
	<div class="two_third">
		<div class="box_two_third">
		<div class="box_head"><{$smarty.const._LB_TESTIMONIAL_MANAGEMENT|utf8_escape_html}></div>
		<div class="box_content">
			<div>
				<{if $testimonial->N > 0 }>
					<{while $testimonial->fetch()}>
						<div class="object">
							<div class="head">
								<span class="right">
                                    <a href="<{$smarty.const.APPLICATION_URL}>/testimonial/form/?id=<{$testimonial->ID}>"><img src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" alt="" class="small" title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" /></a>
									<a onclick="return confirm('<{$smarty.const._MSG_TESTIMONIAL_DELETE_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL}>/testimonial/delete/?id=<{$testimonial->ID}>">
										<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_SMALL}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
									</a>
								</span>
								<b><{$testimonial->NAME|utf8_escape_html}>(<{$testimonial->EMAIL|utf8_escape_html}>)</b><br />
                                <{$smarty.const._LB_STATUS|utf8_escape_html}> : <{$testimonial->status2Text($testimonial->STATUS)|utf8_escape_html}> | 
                                <{$smarty.const._LB_POSITION|utf8_escape_html}> : <{$testimonial->POS|utf8_escape_html}> <br />
                                <div class="content">
									<p><{$testimonial->COMMENT}></p>
									<div style="clear: both;"></div>
                                </div>
							</div>
						</div>
					<{/while}>
				<{else}>
					<{$smarty.const._LB_NO_ITEM|utf8_escape_html}>
				<{/if}>
			</div>
		</div>
        <div class="pagination">
            <{$pager->display()}>
        </div>
	</div>
	</div>
<{include file="footer.html"}>